﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.APP
{
    public class Publish
    {
        #region Fields
        /// <summary>
        /// 发布Id
        /// </summary>
        private decimal id;
        /// <summary>
        /// 发布Id
        /// </summary>
        public decimal Id
        {
            get { return id; }
            //set { id = value; }
        }
        /// <summary>
        /// 新闻Id
        /// </summary>
        private decimal newsId;
        /// <summary>
        /// 新闻Id
        /// </summary>
        public decimal NewsId
        {
            get { return newsId; }
            //set { newsId = value; }
        }
        /// <summary>
        /// 栏目
        /// </summary>
        private string department;
        /// <summary>
        /// 栏目
        /// </summary>
        public string Department
        {
            get { return department; }
            set { department = value; }
        }
        /// <summary>
        /// 显示时间开始
        /// </summary>
        private System.DateTime? displayFrom;
        /// <summary>
        /// 显示时间开始
        /// </summary>
        public System.DateTime? DisplayFrom
        {
            get { return displayFrom; }
            set { displayFrom = value; }
        }
        /// <summary>
        /// 显示时间结束
        /// </summary>
        private DateTime? displayTo;
        /// <summary>
        /// 显示时间结束
        /// </summary>
        public DateTime? DisplayTo
        {
            get { return displayTo; }
            set { displayTo = value; }
        }
        /// <summary>
        /// 置顶时间开始
        /// </summary>
        private DateTime? topFrom;
        /// <summary>
        /// 置顶时间开始
        /// </summary>
        public DateTime? TopFrom
        {
            get { return topFrom; }
            set { topFrom = value; }
        }
        /// <summary>
        /// 制定时间结束
        /// </summary>
        private DateTime? topTo;
        /// <summary>
        /// 制定时间结束
        /// </summary>
        public DateTime? TopTo
        {
            get { return topTo; }
            set { topTo = value; }
        }
        #endregion Fields

        /// <summary>
        /// 更新
        /// </summary>
        public int Update()
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 获得一个发布
        /// </summary>
        /// <param name="publishId">发布Id</param>
        public static Publish GetPublishbyId(decimal publishId)
        {
            throw new System.NotImplementedException();
        }
    }
}
